﻿@model IQReportes.ViewModels.CambiarClaveViewModel

@{
    ViewBag.Title = "CambiarClave";
}

<div id="UsuarioEditar" class="container form form-horizontal">
    @using (Html.BeginForm("CambiarClave", "Usuario"))
    {
    @Html.ValidationSummary(true)
        <fieldset>
            @Html.HiddenFor(model=>model.id)
            <legend>Editar Usuario</legend>
            <div class="control-group">
                <label class="control-label">@Html.LabelFor(model=>model._usuario)</label>
                <div class="controls">                   
                    @Html.TextBoxFor(model => model._usuario,new { disabled = "disabled" })
                    @Html.HiddenFor(model=>model._usuario)
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">@Html.LabelFor(model=>model.claveAntigua)</label>
                <div class="controls">
                    @Html.PasswordFor(model=>model.claveAntigua)
                    @Html.ValidationMessageFor(model => model.claveAntigua)
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">@Html.LabelFor(model=>model.claveNueva)</label>
                <div class="controls">
                    @Html.PasswordFor(model=>model.claveNueva)
                    @Html.ValidationMessageFor(model => model.claveNueva)
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">@Html.LabelFor(model=>model.claveNuevaRepetida)</label>
                <div class="controls">
                    @Html.PasswordFor(model=>model.claveNuevaRepetida)
                    @Html.ValidationMessageFor(model => model.claveNuevaRepetida)
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">@Html.LabelFor(model=>model.nombre)</label>
                <div class="controls">
                    @Html.EditorFor(model=>model.nombre)
                    @Html.ValidationMessageFor(model => model.nombre)
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">@Html.LabelFor(model=>model.email)</label>
                <div class="controls">
                    @Html.EditorFor(model=>model.email)
                    @Html.ValidationMessageFor(model => model.email)
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">@Html.LabelFor(model=>model.nombrePerfil)</label>
                <div class="controls">                   
                    @Html.TextBoxFor(model => model.nombrePerfil,new { disabled = "disabled" })
                    @Html.HiddenFor(model=>model.idPerfil)
                </div>
            </div>
            <div class="form-actions">
                <a href="#" class="btn">Cerrar</a>
			    <input type="submit" class="btn btn-primary" value="Guardar"/>
	        </div>
        </fieldset>
    }
    <script src="~/Scripts/ValidacionesBootstrap.js"></script>
</div>